<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<!-- 
			1、对象
				概述
					对象是一种使用较多的引用类型。
				创建
					//new操作符创建对象
					var 对象名 = new Object();
					//字面量方式创建对象
					var 对象名 = {属性名：属性值};
		-->
		<script type="text/javascript">
			/*
			//1)、创建对象
			//a、new操作符创建对象
			var obj1 = new Object();
			var obj2 =Object();
			
			//b、字面量方式创建对象
			var obj3 = {};
			
			console.log("typeof:" + typeof obj3)
			console.log("obj3:" + obj3)
			
			//2)、创建对象的属性
			var obj4 =new Object();
			obj4.stuNo = 20;
			obj4.stuName = "Tom";
			obj4.age = 77;
			
			//使用属性的值
			console.log("stuNo = " +obj4.stuNo);
			console.log("stuName = " +obj4.stuName);
			console.log("age = " + obj4.age);
			*/
			
			var obj5 = {
				//数据
				stuNo:80,
				stuName:"Jerry",
				age:43,
				//功能
				print:function(){
					console.log("print() method is do.......");
				}
			};
			
			console.log("stuNo = " +obj5.stuNo);
			console.log("stuName = " +obj5.stuName);
			console.log("age = " + obj5.age);
			obj5.print();
			
			//删除对象的属性
			delete obj5.stuName;
			//输出对象的属性信息
			console.log("stuNo = " +obj5.stuNo);
			console.log("stuName = " +obj5.stuName);
			console.log("age = " + obj5.age);
		</script>
	</head>
	<body>
	</body>
</html>
